package com.xiaoshuidi.cloud.module.report.convert.finance;

import com.xiaoshuidi.cloud.module.report.controller.finance.vo.CollectInAdvanceRespVO;
import com.xiaoshuidi.cloud.module.report.controller.finance.vo.DepositDetailExportRespVO;
import com.xiaoshuidi.cloud.module.report.controller.finance.vo.DepositDetailRespVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.DepositDetailDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 权责收入 转换类
 */
@Mapper
public interface DepositDetailConvert {

    DepositDetailConvert INSTANCE = Mappers.getMapper(DepositDetailConvert.class);


    DepositDetailRespVO convert(DepositDetailDO detailDO);

    @Mapping(source = "payMethod", target = "payMethod", dateFormat = "yyyy-MM-dd")
    List<DepositDetailRespVO> convertDOList2VOList(List<DepositDetailDO> advanceDOList);

    @Mapping(source = "payMethod", target = "payMethod", dateFormat = "yyyy-MM-dd")
    List<DepositDetailExportRespVO> convertDOListForExport(List<DepositDetailDO> advanceDOList);




}
